var showAppointment={
    showAppointmentInit:function () {
        $.ajax({
            url:application.contextPath+"/base/appointment/queryAppointmentInfoById",
            dataType:"json",
            type:"POST",
            data:{
                "id":id
            },
            success:function (res) {
                var data=res.data;
                $("#orgId").val(data.orgId);
                $("#lessonId").val(data.lessonId);
                $("#lessonScheduleId").val(data.lessonScheduleId);
                $("#userId").val(data.userId);
                $("#approverId").val(data.approverId);
                $("#subscriber").val(data.subscriber);
                $("#lessonName").val(data.lessonName);
                $("#lessonScheduleName").val(data.lessonScheduleName);
                $("#dealPersonName").val(data.dealPersonName);
                $("#orgName").val(data.orgName);
                $("#trueName").val(data.trueName);
                $("#state").val(data.state);
            }
        });
    }
};

$(document).ready(function(){
    showAppointment.showAppointmentInit();
});